import { request } from '@/api/_service'

// 查询umsRole列表
export function LIST (data) {
  return request({
    url: '/umsRole/list',
    method: 'get',
    params: data
  })
}

// 分页查询umsRole列表
export function PAGE (data) {
  return request({
    url: '/umsRole/page',
    method: 'get',
    params: data
  })
}

// 查询umsRole
export function GET (data) {
  return request({
    url: '/umsRole/' + data,
    method: 'get'
  })
}

// 新增umsRole
export function ADD (data) {
  return request({
    url: '/umsRole',
    method: 'post',
    data: data
  })
}

// 修改umsRole
export function UPDATE (data) {
  return request({
    url: '/umsRole',
    method: 'put',
    data: data
  })
}

// 删除umsRole
export function DELETE (data) {
  return request({
    url: '/umsRole/delete/' + data,
    method: 'delete'
  })
}

export default {
  LIST,
  PAGE,
  GET,
  ADD,
  UPDATE,
  DELETE
}
